package cn.com.connext.scrm.service.mapper;

import cn.com.connext.scrm.service.dto.JsonResult;
import cn.com.connext.scrm.web.rest.req.*;
import cn.com.connext.scrm.web.rest.resp.QueryAnswerByTypeResp;
import cn.com.connext.scrm.web.rest.resp.QueryAnswerDetailForManageResp;
import cn.com.connext.scrm.web.rest.resp.QueryAnswerDetailResp;
import cn.com.connext.scrm.web.rest.resp.QueryForManageResp;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AnswerService {
    JsonResult create(AnswerCreateReq req);

    ResponseEntity<Boolean> update(AnswerUpdateReq req);

    ResponseEntity<Boolean> delete(String req);

    ResponseEntity audit(AnswerauditReq req);

    ResponseEntity<QueryAnswerByTypeResp> queryByType(AnswerQueryReq req);

    ResponseEntity<QueryAnswerDetailForManageResp> detail(String req);

    ResponseEntity<List<QueryAnswerDetailResp>> otherAnswer();

    ResponseEntity<List<QueryAnswerDetailResp>> hotAnswer(DeleteReq req);

    ResponseEntity<List<QueryForManageResp>> manageQuery(ManageQueryReq manageQueryReq);

    ResponseEntity<Page> queryByActId(QueryByActIdReq req);

    void setIsTop(String id);

    void setIsHot(String id);
}
